<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		
		<title>IDC环境下测试CDN服务器文件是否生效</title>
		<style>
			html, body{margin:0;padding:0;background-color:#EEE;}
			.ct{width:1000px;padding:10px;margin:0 auto;background-color:#EEE;min-height:200px;}
			.ct .title{text-align:center;padding:10px 0;font-family:"微软雅黑";}
			.ct .cp{background-color:#CCC;padding:20px 10px; min-height:120px;}
			
			.file{height:2em;line-height:1.5em;}
			.frame_text{
				background-color:#EDB;
				border: 1px dashed blue;
				margin-top: 20px;
				/*overflow: hidden;*/
				width: 100%;
			}
		</style>
	</head>
	
	<body>
		<div id="header"></div>
		<div class="ct" id="container">
			<h1 class="title">IDC环境下测试CDN服务器文件是否生效</h1>
			<div class="cp">
				<label for="file_url">文件路径：</label><input title="js文件的完整地址，如 http:static.paipaiimg.com/js/pp.rate.20110617.shtml" id="file_url" class="file" size="100"/>　<button id="check_btn">检查一下:-)</button>
				<div id="infos"></div>
				<iframe id="frame_text" class="frame_text"></iframe>
			</div>
		</div>
		<script>
			var g = function(str){ return document.getElementById(str);};
			g("check_btn").onclick = function(){
				var ifm = g("frame_text");
				//ifm.src = g("file_url").value || "http://static.paipaiimg.com/js/pp.buy.20110708.shtml?1";
				ifm.src = "http://static.paipaiimg.com/js/pp.buy.20110708.shtml?2";
				var i=0;
				//【只有IE6/7/8/9】实现了HTMLelement的onreadystatechange事件
				window.ifm = ifm;
			};
		</script>
	</body>
	
</html>
